<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>解构赋值</title>
</head>
<body>
    <script>
        // var [x,y]=[1,2]
        // console.log(x,y);
        let gu={
            a:1,
            b:[1,23,4],
            c:{
                d:1,
                e:2,
                f:[1,3,4]
            },
            n:rui()
        }
        function rui(){
            console.log('解构函数')
        }
    let {a,b:[,b],c:{f:[,d]},n}=gu;
    console.log(a,b,d,n)
    </script>
</body>
</html>